package com.issue.system.mapper;

import com.issue.system.domain.ChildQuiz;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * QuizMapper接口
 * 
 * @author system
 * @date 2024-10-20
 */
public interface ChildQuizMapper 
{
    /**
     * 查询Quiz
     * 
     * @param id Quiz主键
     * @return Quiz
     */
    public ChildQuiz selectChildQuizById(Long id);

    /**
     * 查询Quiz列表
     * 
     * @param childQuiz Quiz
     * @return Quiz集合
     */
    public List<ChildQuiz> selectChildQuizList(ChildQuiz childQuiz);

    /**
     * 新增Quiz
     * 
     * @param childQuiz Quiz
     * @return 结果
     */
    public int insertChildQuiz(ChildQuiz childQuiz);

    /**
     * 修改Quiz
     * 
     * @param childQuiz Quiz
     * @return 结果
     */
    public int updateChildQuiz(ChildQuiz childQuiz);

    /**
     * 删除Quiz
     * 
     * @param id Quiz主键
     * @return 结果
     */
    public int deleteChildQuizById(Long id);

    /**
     * 批量删除Quiz
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteChildQuizByIds(Long[] ids);

    List<ChildQuiz> selectListByPhone(@Param("phone") String phone,
                                      @Param("courseId") Long courseId,
                                      @Param("childId") Long childId);
}
